home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / i_dstr.doc < prev    next >
Text File  |  1986-09-23  |  1KB  |  39 lines

  1.  
  2.  
  3.  
  4.  
  5.         NAME
  6.                 i_dstr -- make an integer from a decimal ascii string
  7.  
  8.         SYNOPSIS
  9.                 c = i_dstr(p, r);
  10.                 char *p;       destination string pointer
  11.                 int r;         integer to convert
  12.                 int c;         count of characters in string
  13.  
  14.  
  15.         DESCRIPTION
  16.         Convert an integer into an ascii decimal string (unsigned).
  17.         Range is that of 16 bits unsigned, or 0-65535.  The function
  18.         returns the number of characters placed in the string.  The string
  19.         is NULL terminated, and must be at least six bytes long to
  20.         accomodate the longest number plus the NULL.  Numbers are assumed
  21.         to be positive.
  22.  
  23.  
  24.         EXAMPLE
  25.  
  26.                char string[6];
  27.                int count;
  28.                count = i_dstr(string, 1357);
  29.                  count will equal 4
  30.                  string will be "1357\0"
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMDLx.LIB for the Datalight Compiler
  39.